//等级模型计算 不稳定，出现问题会调整算法
function getLevel(modal) {
    let str = modal.str * 2
    let con = modal.con * 2
    let dex = modal.dex * 2
    let mag = modal.mag * 2
    let chr = modal.chr
    let ler = modal.ler * 1.5
    let total = str + con + dex + mag + chr + ler
    return total

}
function modalLevel(modal) {
    let str = modal.str * 2
    let con = modal.con * 2
    let dex = modal.dex * 2
    let mag = modal.mag * 2
    let chr = modal.chr
    let ler = modal.ler * 1.5
    let total = str + con + dex + mag + chr + ler
    if (52.5 > total) {
        return 0
    }
    else if (72.5 > total) {
        return 1
    }
    else if  (122.5 > total) {
        return 2
    }
    else if  (272.5 > total) {
        return 3
    }
    else if  (565 > total) {
        return 4
    }
    else if  (1365 > total) {
        return 5
    }
    else if  (7000 > total) {
        return 6
    }
    else{
        return 7
    }

}
